Entry

interface Entry<T, E : Entry<T, E>> : EntryHandler<T> , EntryWidget<T> , Consumer<T> , Supplier<T>

A base Entry for configs.

Performs 8 basic functions

  • serialize contents

  • deserialize input

  • validate updates

  • correct errors

  • provide widgets

  • apply inputs

  • supply outputs

  • create instances

Author

fzzyhmstrs

Since

0.2.0

Parameters

T

the non-null type of the Entry stored value

Inheritors

Functions

Link copied to clipboard
abstract fun accept(p0: T)
Link copied to clipboard
open fun andThen(p0: Consumer<in T>): Consumer<T>
Link copied to clipboard
Link copied to clipboard
abstract fun deserializeEntry(toml: TomlElement, errorBuilder: MutableList<String>, fieldName: String, flags: Byte): ValidationResult<T>
Link copied to clipboard
abstract fun get(): T
Link copied to clipboard
abstract fun instanceEntry(): E
Link copied to clipboard
abstract fun isValidEntry(input: Any?): Boolean
Link copied to clipboard
abstract fun serializeEntry(input: T?, errorBuilder: MutableList<String>, flags: Byte): TomlElement
Link copied to clipboard
abstract fun trySet(input: Any?)
Link copied to clipboard
Link copied to clipboard
open fun widgetAndTooltipEntry(choicePredicate: ChoiceValidator<T> = ChoiceValidator.any()): ClickableWidget
Link copied to clipboard
abstract fun widgetEntry(choicePredicate: ChoiceValidator<T> = ChoiceValidator.any()): ClickableWidget